package com.huiquan.foundation.constant;

import java.util.ArrayList;
import java.util.List;

public class SubmitStatus {
	// 提交记录
	private static List<String> records = new ArrayList<>();

	/** 提交类型1-疾病指标黑名单. */
	public static String TYPE_DISEASE_INSPECTION_BLACKLIST = "1";

	/** 提交类型2-指标维表. */
	public static String TYPE_INSPECTION = "2";

	/** 提交类型3-二元组初始化. */
	public static String TYPE_DYAD_INIT = "3";

	/** 提交类型4-提交二元组p+p. */
	public static String TYPE_DYAD_SUBMIT_P_P = "4";

	/** 提交类型5-提交二元组p+o. */
	public static String TYPE_DYAD_SUBMIT_P_O = "5";

	/** 提交类型6-提交二元组o+o. */
	public static String TYPE_DYAD_SUBMIT_O_O = "6";

	/** 提交类型7-刷新二元组位置判断. */
	public static String TYPE_DYAD_O_CHECK_P_INIT = "7";

	/** 提交类型8-根据元素同义词合并正确的二元组. */
	public static String TYPE_DYAD_MERGE_TRUE_DYAD = "8";

	public static synchronized void addSubmitRecords(String type) {
		records.add(type);
	}

	public static List<String> getSubmitRecords() {
		return records;
	}

	public static boolean removeSubmitRecords(String type) {
		return records.remove(type);
	}
}
